package com.spleeb.pixelengine;

import java.util.ArrayList;

public class Container extends Satrix implements ScreenObject {
	public ArrayList<ScreenObject> children = new ArrayList<ScreenObject>();
	public void add(ScreenObject child){
		children.add(child);
	}
	public void Draw(Screen screen, Satrix satrix) {
		Satrix nsatrix = satrix.clone().merge(this);
		for (int i = children.size()-1;i>=0;i--){
			children.get(i).Draw(screen, nsatrix);
		}
	}
}
